import 'package:dio/dio.dart';
import '../../api/api.dart';

//请求
class API {
  /*
    使用方法
    API.test(data).then.then((res) {
      print(res);
    });
   */

  // 测试
  static test(data) {
    return HttpRequest.request("https://httpbin.org/get",
        options: Options(
            method: "GET",
            //sendTimeout: 100000
        ),
        //method: "get",
        params: {"name": "tao", 'age': 18});
  }
  /*
  // 登录
  static login(data) {
    HttpRequest.request("https://httpbin.org/get",
        method: "get",
        params: {"name": "tao", 'age': 18}).then((res) {
      print(res);
    });
  }

   */
}
